package com.ruoyi.project.wechat.mapper;

import com.ruoyi.project.wechat.domain.XcxVersion;
import com.ruoyi.project.wechat.domain.XcxVersionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface XcxVersionMapper {
    long countByExample(XcxVersionExample example);

    int deleteByExample(XcxVersionExample example);

    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(XcxVersion record);

    int insertOrUpdate(XcxVersion record);

    int insertOrUpdateSelective(XcxVersion record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(XcxVersion record);

    List<XcxVersion> selectByExample(XcxVersionExample example);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    XcxVersion selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") XcxVersion record, @Param("example") XcxVersionExample example);

    int updateByExample(@Param("record") XcxVersion record, @Param("example") XcxVersionExample example);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(XcxVersion record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(XcxVersion record);

    int updateBatch(List<XcxVersion> list);

    int batchInsert(@Param("list") List<XcxVersion> list);

    int updateBatchSelective(List<XcxVersion> list);
}